package com.yezong.AidMe.entity;

import java.util.Date;
//预期订单
public class OverOrder extends Order {

    Date now = new Date();//获取现在的时间
    private Integer day1 = this.getDdltime().getDay()-this.getLendtime().getDay();
    private Integer day2 = now.getDay()-this.getDdltime().getDay();
    private Double Overprice = (this.getPrice()/day1)*1.5*day2;//逾期时间内增加的价格

    //修改借用者Credit

    public OverOrder() {
    }

    public Date getNow() {
        return now;
    }

    public void setNow(Date now) {
        this.now = now;
    }

    public Double getOverprice() {
        return Overprice;
    }

    public void setOverprice(Double overprice) {
        Overprice = overprice;
    }
}
